package com.lengxf.pay.ali.starter;

import com.lengxf.pay.common.config.ServerAddr;
import com.lengxf.pay.common.enums.PayChannel;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@ConfigurationProperties(prefix = "pay.server.ali")
public class AliPayServerAddressConfig {

    public String address;

    public void setAddress(String address) {
        this.address = address;
        ServerAddr.put(PayChannel.ALI, address);
    }

}
